//exam_2_4_3.c: a,b,c,odered descend.
#include <stdio.h>

int main(void)
{
    int a, b, c, tmp;
    printf("Enter three integers:\n");
    scanf("%d%d%d", &a, &b, &c);
    printf("%d %d %d\n", a, b, c);

    if(a<b)
    {
        tmp = a;
        a = b;
        b = tmp;
    }

    if(a < c)
    {
        tmp = a;
        a = c; 
        c = tmp;
    }

    if(b < c)
    {
        tmp = b;
        b = c;
        c = tmp;
    }

    printf("orded output:\n");
    printf("%d %d %d\n", a, b, c);
    return 0;
}
